package com.sfx.service;

import com.sfx.domain.ResponseResult;
import com.sfx.domain.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sfx.domain.vo.HotArticleVo;

import java.util.List;

/**
* Created with IntelliJ IDEA.
* Description:
* User: sfx
* Date: 2023-07-10
* Time: 11:00
*/
public interface ArticleService extends IService<Article>{

    ResponseResult<List<HotArticleVo>> hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleById(Integer id);

    ResponseResult updateViewCount(Long id);
}